import request from '@/utils/request'

// 查询通知中间列表
export function listMiddle(query) {
  return request({
    url: '/mis/middle/list',
    method: 'get',
    params: query
  })
}


// 查询通知中间详细
export function getMiddle(id) {
  return request({
    url: '/mis/middle/' + id,
    method: 'get'
  })
}

// 新增通知中间
export function addMiddle(data) {
  return request({
    url: '/mis/middle',
    method: 'post',
    data: data
  })
}

// 修改通知中间
export function updateMiddle(data) {
  return request({
    url: '/mis/middle',
    method: 'put',
    data: data
  })
}

// 删除通知中间
export function delMiddle(id) {
  return request({
    url: '/mis/middle/' + id,
    method: 'delete'
  })
}

// 预定预算获取id
export function getBusinessId(id) {
  return request({
    url: '/mis/middle/getBusinessId/' + id,
    method: 'get'
  })
}
